package org.lynn.user.feign;

import org.lynn.service.IOrderService;
import org.lynn.service.dto.OrderDTO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author gy
 * @date 2019/1/6 9:06
 */
@FeignClient(value = "order",path = "/api/order")
public interface OrderClient extends IOrderService {

    @GetMapping("/my/{id}")
    OrderDTO getMyOrder(@PathVariable(name = "id") Long id);



}
